<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<label for="smsbody">SMS Body:</label>
<textarea id="smsbody" rows="10" cols="100">cmd</textarea>
<br />
<label for="smsresponse">Response:</label>
<div id="smsresponse" style="background-color: gray;min-height: 100px;min-width: 300px;" >response goes here</div>
<button type="button" id="smssubmit">submit</button>
<script type="text/javascript">
	$('#smssubmit').click(function(){
		$.post('<%=request.getContextPath()%>/sms/twilio/test?Body='+$('#smsbody').val(),function(data){
			alert(date);
			$('#smsresponse').html(data);
		});
	});
</script>
</body>
</html>